<?php 
	$conn=connectDB();
	$idfilier=selectIdFiliere($_GET['filiere']);
	$idanne= selectIdNiveau($_GET['annee']);
	$result=selectnomcour($idfilier,$idanne);
	$arr=array();
	while ($row = mysql_fetch_array($result)) {
	$arr[$row['id_cours']]=$row['nomcours'];
	array_push($arr, $row['nomcours']);
	}
	$smarty->assign('selectcr', $arr);

?>